package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Strategy;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 攻略明细持久化接口
 */
public interface StrategyRepository extends MongoRepository<Strategy, String>{

    List<Strategy> findByDestId(String destId);

    List<Strategy> findByCatalogName(String name);

    List<Strategy> findByDestId(String destId, Pageable pageable);
}

